
    <!--搜索-->
    <!--位置-->
    <div class="clearFloat bag-fff">
        <div class="sewz m-l-35 m-r-35">
            <a href="<?= yii\helpers\Url::to(['/']);?>">首页</a> > <a> <?= $title; ?></a>
        </div>
    </div>
    <!--位置-->
    <!--列表-->
    <div class="lycont bag-fff">
        <div class="m-l-35 m-r-35 p-b-45">
            <a href="<?= yii\helpers\Url::to(['message/page']);?>">
                <img src="../../images/lysub.png" alt="" width="100%">
            </a>
        </div>
    </div>
    <div class="clearFloat bag-fff m-t-27">
        <div class="m-l-35 m-r-35">
            <h3 class="xgxwh3"><span><?= $title; ?></span></h3>
            <div class="clearFloat">
                <?php foreach($articles as $k=>$t){ ?>
                <div class="dianping p-t-30 p-b-30 b-b-e6e6e6">
                    <div class="dp-user clearFloat">
                        <img src="../../images/user.png" alt="" class="dp-userimg floatLeft"/>
                        <span class="lyname"><?php if(strlen($t['user']) == 3) { echo $t['user']; }else{echo mb_substr(strip_tags($t['user']),0,1,'utf-8')."**";} ?>:</span>
                        <span class="lydata"><?= date('Y-m-d H:i',$t['create_time']);?></span>
                    </div>
                    <div class="dp-contetn">
                        <?= $t['content']; ?>
                    </div>
                     <?php if(mb_strlen( trim($t['content']))>50){ ?>
                    <div class="dp-up">
                         展开
                    </div>
                    <?php } ?>
                    <div class="dp-up2">
                         收起
                    </div>
                </div>
                <?php } ?>
            </div>
            <script>
                $(function(){
                    $(".dp-up").click(function(){
                        $(this).siblings(".dp-contetn").css({
                            "height":"auto"
                        })
                        $(this).hide();
                        $(this).siblings(".dp-up2").show();
                    });
                    $(".dp-up2").click(function(){
                        $(this).siblings(".dp-contetn").css({
                            "height":"1.1rem"
                        })
                        $(this).hide();
                        $(this).siblings(".dp-up").show();
                    })

                })
                
            </script>
        </div>
    </div>
    <a href="#" class="ggmore">点击加载更多</a>
    <!--列表-->
    <!--搜索-->


